//
//  MJ_TaskViewModel.h
//  UEAssistant
//
//  Created by mac on 2017/12/28.
//  Copyright © 2017年 youyixinxi. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MJ_TaskListResult.h"
#import "MJ_TaskListPageInfo.h"
typedef NS_ENUM(NSUInteger, MJTaskOrder) {
    //企业
    MJTaskOrderEnterpriseWait,//待抢单
    MJTaskOrderEnterpriseOngoing,//进行中
    //个人
    MJTaskOrderWaitWithGroup,//来自团队待抢单
    MJTaskOrderOngoingWithGroup,//来自团队进行中
    MJTaskOrderWaitWithPlat,//来自平台待抢单
    MJTaskOrderOngoingWithPlat,//来自平台进行中
    
    MJTaskOrderTranslateExample,//试译中
};

typedef void(^ResultBlock)(BOOL success);

@interface MJ_TaskViewModel : NSObject
//模型数组
@property (strong, nonatomic)NSMutableArray *resultModelList;
//历史订单列表
@property (strong, nonatomic)NSMutableArray *historyOrderList;
//分页参数
@property (strong, nonatomic)MJ_TaskListPageInfo *pageInfoModel;
//是否拥有下一页
@property (assign, nonatomic)BOOL hasMore;
//当前页数
@property (assign, nonatomic)NSInteger currentPage;
//获取订单数据
- (void)getTaskOrderListWith:(MJTaskOrder)type parameter:(NSDictionary *)parameter success:(ResultBlock)success;
//获取历史订单数据
- (void)getHistoryOrderListWithType:(MJTaskOrder)type parameter:(NSDictionary *)parameter success:(ResultBlock)success;
@end
